﻿using System.Linq.Expressions;

namespace MathService.Expressions.Complex
{
    public class CopmlexConstantExpression : ComplexExpression
    {
        private readonly Expression f_Re;
        private readonly Expression f_Im;

        internal CopmlexConstantExpression(double Re, double Im) : this(Constant(Re), Constant(Im)) { }

        internal CopmlexConstantExpression(Expression Re, Expression Im) { f_Re = Re; f_Im = Im; }

        protected override Expression GetRe() { return f_Re; }
        protected override Expression GetIm() { return f_Im; }
    }
}